<%@ page import="java.util.List" %>
<%@ page import="WeatherUtil.WeatherMethod" %><%--
  Created by IntelliJ IDEA.
  User: 28464
  Date: 2021/10/22
  Time: 10:57
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
  <head>
    <title>$Title$</title>
  </head>
  <body>
  <pre>
    <%
      request.setCharacterEncoding("UTF-8");
      String city=request.getParameter("city");
      WeatherMethod weatherMethod=new WeatherMethod();
      List<String> wealist=weatherMethod.getWeatherByCityName(city);
      for (String wea :
              wealist) {
        out.println(wea);
      }
    %>
  </pre>



  </body>
</html>
